package com.by.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author LittleDesire
 * @description
 * @date 2022-03-28 周一 14:16
 * @since 17
 */
@Controller
public class xmlCon {

    @GetMapping("x1")
    public String xml() {
        return "xml";
    }

    @ModelAttribute
    public String name() {
        return "张三 hi";
    }
}
